define(function(require, exports,module) {
	require('cookie.js');
	/** 获取机器指纹 */
	function getFingerprint() {
		require.async(['fingerprint2.js'], function() {
			new Fingerprint2().get(function(result){
				setCookie(result);
			});
		});
	}
	function setCookie(fingerprint) {
		$.cookie('FINGER_PRINT', fingerprint, { expires: 30, path: '/' });
	}
	function getCookie() {
		return $.cookie('FINGER_PRINT');
	}
	
	module.exports = function() {
		if (!getCookie()) {
			getFingerprint();
		}
	}();
});